package metier;


import java.io.Serializable;

import java.util.Date;

public class Encherir implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id_personne = -1;
	private int id_offre = -1;
	private double prix_enchere = 0.0;
	private Date date_enchere ;
	private boolean gagnant = false;
	
	public Encherir()
	{
	}

	public Encherir(int id_personne, int id_offre, double prix_enchere,
			Date date_enchere, boolean gagnant) {
		super();
		this.id_personne = id_personne;
		this.id_offre = id_offre;
		this.prix_enchere = prix_enchere;
		this.date_enchere = date_enchere;
		this.gagnant = gagnant;
	}
	

	public int getId_personne() {
		return id_personne;
	}

	public void setId_personne(int id_personne) {
		this.id_personne = id_personne;
	}

	public int getId_offre() {
		return id_offre;
	}

	public void setId_offre(int id_offre) {
		this.id_offre = id_offre;
	}

	public double getPrix_enchere() {
		return prix_enchere;
	}

	public void setPrix_enchere(double prix_enchere) {
		this.prix_enchere = prix_enchere;
	}

	public Date getDate_enchere() {
		return date_enchere;
	}

	public void setDate_enchere(Date date_enchere) {
		this.date_enchere = date_enchere;
	}

	public boolean isGagnant() {
		return gagnant;
	}

	public void setGagnant(boolean gagnant) {
		this.gagnant = gagnant;
	}

	@Override
	public String toString() {
		return "[" + id_personne + ";"
				+ id_offre + ";" + prix_enchere
				+ ";" + date_enchere + ";" + gagnant
				+ "]";
	}
	
	
	
	
	
	
	
}
